﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace Snowing.AspNetCore.Json
{
    [JsonObject]
    public class TableResult<T>
    {
        [JsonProperty("code")]
        public int Code { get; set; }

        [JsonProperty("msg")]
        public string Msg { get; set; }

        [JsonProperty("count")]
        public int Count { get; set; }

        [JsonProperty("data")]
        public IList<T> Data { get; set; }

        public TableResult()
        {
            this.Data = new List<T>();
        }
    }
}
